/* 质检标准动态表单样式 */
.check-items-container,
.tolerance-container {
    margin-top: 10px;
}

.category-item {
    margin-bottom: 15px;
}

.category-item .panel-heading {
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.category-item .panel-heading .row {
    margin: 0;
}

.category-item .panel-heading .col-sm-6 {
    padding: 0 5px;
}

.category-name {
    font-weight: bold;
    border: none;
    background: transparent;
    box-shadow: none;
}

.category-name:focus {
    background: white;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

.items-container {
    padding: 10px 15px;
}

.item-row {
    margin-bottom: 10px;
    padding: 8px;
    background-color: #fafafa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.item-row:hover {
    background-color: #f0f0f0;
}

.item-row .col-sm-4,
.item-row .col-sm-6,
.item-row .col-sm-2 {
    padding: 0 5px;
}

.item-name {
    font-weight: 500;
}

.item-value {
    color: #666;
}

.add-item-btn {
    margin-left: 5px;
}

.remove-category-btn,
.remove-item-btn {
    margin-left: 5px;
}

/* 公差要求样式 */
.tolerance-row {
    margin-bottom: 10px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.tolerance-row:hover {
    background-color: #e9ecef;
}

.tolerance-row .col-sm-5,
.tolerance-row .col-sm-2 {
    padding: 0 5px;
}

.tolerance-name {
    font-weight: 500;
}

.tolerance-value {
    color: #666;
}

/* 空状态提示 */
.items-list:empty::before {
    content: "暂无检查项，点击上方按钮添加";
    display: block;
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

#categories-container:empty::before {
    content: "暂无检查类别，点击上方按钮添加";
    display: block;
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px;
}

#tolerance-items-container:empty::before {
    content: "暂无公差要求，点击上方按钮添加";
    display: block;
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-item .panel-heading .row {
        flex-direction: column;
    }
    
    .category-item .panel-heading .col-sm-6 {
        margin-bottom: 10px;
    }
    
    .item-row .col-sm-4,
    .item-row .col-sm-6,
    .item-row .col-sm-2 {
        margin-bottom: 5px;
    }
}
